package cn.stylefeng.guns.modular.gridsystem.netty.tcp;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author ssy
 * @date 2023/3/27 11:50
 */
@Data
public class Message implements Serializable {

    private long timestamp;
    private String basicInfo;
    private String id;
    private String firmware;
    private int hardware;
    private int protocol;
    private String flag;
    private DataGroup dataGroup;
    private String crc;
    private int end;

    @Data
    @ToString(exclude = "data")
    public static class DataGroup{
        private int stype;
        private int sampleRate;
        private int bits;
        private int channel;
        private byte[] data;
    }

}
